// scss 编译任务

var scss = require('gulp-sass'),
    mincss = require('gulp-minify-css')
gulp = require('gulp');


gulp.task('build-css', function () {
    gulp.src('./scss/online-resume.scss')
        .pipe(scss())
        .on('error', function (error) {
            // If you want details of the error in the console
            console.error(error.toString())
            this.emit('end')
        })
        .pipe(gulp.dest('./css/src'))
        .pipe(mincss())
        .pipe(gulp.dest('./css/dist'))
})
gulp.watch('./scss/**/*.scss', ['build-css']);



